<!doctype HTML>
<script src="../resources/text-based-repaint.js"></script>
<div id="target" style="position: absolute; width: 300px; height: 300px; clip: rect(0px, 300px, 300px, 0px)">
  <div style="isolation: isolate; width: 500px; height: 500px; background: lightblue">
    <div style="positiion: relative"></div>
  </div>
</div>
<script>
function repaintTest() {
  target.style.clip = "rect(0px, 300px, 200px, 0px)"
}
onload = runRepaintTest;
</script>
